﻿<Border x:Class="MyRecipeBook.UI.Controls.ControlDashboardItem"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        x:Name="UserControlDashboardItem"
        Style="{DynamicResource StyleControlDashboardItem}">

    <Border.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/MyRecipeBook.UI;component/Themes/BrushDictionary.xaml" />
                <ResourceDictionary Source="/MyRecipeBook.UI;component/Themes/ControlDictionary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Border.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="75" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Image Grid.Row="0" Margin="5"  />
        <TextBlock Grid.Row="1" Text="{Binding ElementName=UserControlDashboardItem, Path=Caption}" Style="{DynamicResource StyleControlDashboardItemCaption}" />
    </Grid>
</Border>
